package com.chongbangbang.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author TP
 * @version 1.0
 * @date 2022-03-16 15:20:37
 */
@Controller
public class LoginController {

    @RequestMapping("/chong/toLogin")
    public String toLogin(){

        return "login";
    }


    @RequestMapping("/chong/register")
    public String register(String username, String password) {

        return "index";
    }

    @RequestMapping("/chong/index")
    public String index(){
        return "index";
    }
}
